package router

import (
	"github.com/gin-gonic/gin"
	"monment/handler/service"
)

func Router() *gin.Engine {
	r := gin.Default()
	r.POST("/publish", service.Publish)
	r.GET("/getPostList", service.GetPostList)
	r.POST("/addLike", service.AddLike)
	r.POST("/addComment", service.AddComment)
	r.POST("/qiNiuYun", service.QiNiuYun)
	r.POST("/ossUpload", service.OssUpload)
	return r
}
